<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::visualization::PCLSimpleBufferVisualizer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::visualization::PCLSimpleBufferVisualizer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>PCL simple buffer visualizer main class.  
 <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="simple__buffer__visualizer_8h_source.html">simple_buffer_visualizer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a82d5e020ab4ebafacb4aa3459899e666"><td class="memItemLeft" align="right" valign="top"><a id="a82d5e020ab4ebafacb4aa3459899e666"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a82d5e020ab4ebafacb4aa3459899e666">PCLSimpleBufferVisualizer</a> ()</td></tr>
<tr class="memdesc:a82d5e020ab4ebafacb4aa3459899e666"><td class="mdescLeft">&#160;</td><td class="mdescRight">PCL simple buffer visualizer visualizer default constructor. <br /></td></tr>
<tr class="separator:a82d5e020ab4ebafacb4aa3459899e666"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6e92f9d0039dfe41fff3c08c8f6a02c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa6e92f9d0039dfe41fff3c08c8f6a02c">PCLSimpleBufferVisualizer</a> (const int nb_values)</td></tr>
<tr class="memdesc:aa6e92f9d0039dfe41fff3c08c8f6a02c"><td class="mdescLeft">&#160;</td><td class="mdescRight">PCL simple buffer visualizer visualizer constructor.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa6e92f9d0039dfe41fff3c08c8f6a02c">更多...</a><br /></td></tr>
<tr class="separator:aa6e92f9d0039dfe41fff3c08c8f6a02c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80688a5e12f8efbfff90faedd8d9bf68"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a80688a5e12f8efbfff90faedd8d9bf68">displayValues</a> (const int time=1)</td></tr>
<tr class="memdesc:a80688a5e12f8efbfff90faedd8d9bf68"><td class="mdescLeft">&#160;</td><td class="mdescRight">force display of values.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a80688a5e12f8efbfff90faedd8d9bf68">更多...</a><br /></td></tr>
<tr class="separator:a80688a5e12f8efbfff90faedd8d9bf68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24a2e50ff80b47f857977f333302c8df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a24a2e50ff80b47f857977f333302c8df">addValue</a> (const float val)</td></tr>
<tr class="memdesc:a24a2e50ff80b47f857977f333302c8df"><td class="mdescLeft">&#160;</td><td class="mdescRight">add a new value at the end of the buffer.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a24a2e50ff80b47f857977f333302c8df">更多...</a><br /></td></tr>
<tr class="separator:a24a2e50ff80b47f857977f333302c8df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c148cf9748be1a78cd75f49e4a3c800"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a3c148cf9748be1a78cd75f49e4a3c800">spinOnce</a> (const int time=1)</td></tr>
<tr class="memdesc:a3c148cf9748be1a78cd75f49e4a3c800"><td class="mdescLeft">&#160;</td><td class="mdescRight">spinOnce method.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a3c148cf9748be1a78cd75f49e4a3c800">更多...</a><br /></td></tr>
<tr class="separator:a3c148cf9748be1a78cd75f49e4a3c800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accc652e550e2c4a49b9df3e04c37ed51"><td class="memItemLeft" align="right" valign="top"><a id="accc652e550e2c4a49b9df3e04c37ed51"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#accc652e550e2c4a49b9df3e04c37ed51">spin</a> ()</td></tr>
<tr class="memdesc:accc652e550e2c4a49b9df3e04c37ed51"><td class="mdescLeft">&#160;</td><td class="mdescRight">spin method. <br /></td></tr>
<tr class="separator:accc652e550e2c4a49b9df3e04c37ed51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80e5d59197e2975463911e3ed6fa14ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a80e5d59197e2975463911e3ed6fa14ba">setAutomaticBackgroundColorControl</a> (const bool value=true, const float threshold=0.0f)</td></tr>
<tr class="memdesc:a80e5d59197e2975463911e3ed6fa14ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">set background color handling mode.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a80e5d59197e2975463911e3ed6fa14ba">更多...</a><br /></td></tr>
<tr class="separator:a80e5d59197e2975463911e3ed6fa14ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f17af179af451c721cbd720f138d0b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a6f17af179af451c721cbd720f138d0b3">setManuallyManageYScale</a> (const bool value=false)</td></tr>
<tr class="memdesc:a6f17af179af451c721cbd720f138d0b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">set Y scale policy.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a6f17af179af451c721cbd720f138d0b3">更多...</a><br /></td></tr>
<tr class="separator:a6f17af179af451c721cbd720f138d0b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a4e40e9eb53a9ebbf74a42d4c96004108"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a4e40e9eb53a9ebbf74a42d4c96004108">initValuesAndVisualization</a> ()</td></tr>
<tr class="memdesc:a4e40e9eb53a9ebbf74a42d4c96004108"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize ther buffer that stores the values to zero.  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a4e40e9eb53a9ebbf74a42d4c96004108">更多...</a><br /></td></tr>
<tr class="separator:a4e40e9eb53a9ebbf74a42d4c96004108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3967dfc8b54d04e3a8583e557ef71a2"><td class="memItemLeft" align="right" valign="top"><a id="af3967dfc8b54d04e3a8583e557ef71a2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#af3967dfc8b54d04e3a8583e557ef71a2">updateValuesToDisplay</a> ()</td></tr>
<tr class="memdesc:af3967dfc8b54d04e3a8583e557ef71a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">pushes the values contained inside the buffer to the cloud used for visualization. <br /></td></tr>
<tr class="separator:af3967dfc8b54d04e3a8583e557ef71a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb93b4308c827d41ab669e05012a6beb"><td class="memItemLeft" align="right" valign="top"><a id="aeb93b4308c827d41ab669e05012a6beb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aeb93b4308c827d41ab669e05012a6beb">initGUIValues</a> ()</td></tr>
<tr class="memdesc:aeb93b4308c827d41ab669e05012a6beb"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize private variables linked to the GUI <br /></td></tr>
<tr class="separator:aeb93b4308c827d41ab669e05012a6beb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ab6d091c29ba760da2f75843fd6b3206d"><td class="memItemLeft" align="right" valign="top"><a id="ab6d091c29ba760da2f75843fd6b3206d"></a>
<a class="el" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html">PCLHistogramVisualizer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a></td></tr>
<tr class="memdesc:ab6d091c29ba760da2f75843fd6b3206d"><td class="mdescLeft">&#160;</td><td class="mdescRight">visualizer object <br /></td></tr>
<tr class="separator:ab6d091c29ba760da2f75843fd6b3206d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2db20852dc0e7ebb1e493fdbedb10e49"><td class="memItemLeft" align="right" valign="top"><a id="a2db20852dc0e7ebb1e493fdbedb10e49"></a>
<a class="el" href="classpcl_1_1_point_cloud.html">PointCloud</a>&lt; <a class="el" href="structpcl_1_1_v_f_h_signature308.html">VFHSignature308</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a2db20852dc0e7ebb1e493fdbedb10e49">cloud_</a></td></tr>
<tr class="memdesc:a2db20852dc0e7ebb1e493fdbedb10e49"><td class="mdescLeft">&#160;</td><td class="mdescRight">cloud used for visualization <br /></td></tr>
<tr class="separator:a2db20852dc0e7ebb1e493fdbedb10e49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa54660cc72d298716912e429ac637dd2"><td class="memItemLeft" align="right" valign="top"><a id="aa54660cc72d298716912e429ac637dd2"></a>
std::deque&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">values_</a></td></tr>
<tr class="memdesc:aa54660cc72d298716912e429ac637dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">buffer of values <br /></td></tr>
<tr class="separator:aa54660cc72d298716912e429ac637dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac95848a16bac849b78d13b7165b04e6a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a></td></tr>
<tr class="memdesc:ac95848a16bac849b78d13b7165b04e6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of values stored in the buffer  <a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">更多...</a><br /></td></tr>
<tr class="separator:ac95848a16bac849b78d13b7165b04e6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9be44647f5798993de56fa3c3786f713"><td class="memItemLeft" align="right" valign="top"><a id="a9be44647f5798993de56fa3c3786f713"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a9be44647f5798993de56fa3c3786f713">control_background_color_</a></td></tr>
<tr class="memdesc:a9be44647f5798993de56fa3c3786f713"><td class="mdescLeft">&#160;</td><td class="mdescRight">boolean used to know if we need to change the backgroud color in case of low values. <br /></td></tr>
<tr class="separator:a9be44647f5798993de56fa3c3786f713"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1a2873415d0e1eaa813c993dde3f4e2"><td class="memItemLeft" align="right" valign="top"><a id="ad1a2873415d0e1eaa813c993dde3f4e2"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ad1a2873415d0e1eaa813c993dde3f4e2">lowest_threshold_</a></td></tr>
<tr class="memdesc:ad1a2873415d0e1eaa813c993dde3f4e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">threshold to turn the background orange if latest value is lower. <br /></td></tr>
<tr class="separator:ad1a2873415d0e1eaa813c993dde3f4e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d8212450dc5286dd1784d7ae3afc376"><td class="memItemLeft" align="right" valign="top"><a id="a7d8212450dc5286dd1784d7ae3afc376"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a7d8212450dc5286dd1784d7ae3afc376">handle_y_scale_</a></td></tr>
<tr class="memdesc:a7d8212450dc5286dd1784d7ae3afc376"><td class="mdescLeft">&#160;</td><td class="mdescRight">boolean used to know if we need to change the backgroud color in case of low values. True means we do it ourselves. <br /></td></tr>
<tr class="separator:a7d8212450dc5286dd1784d7ae3afc376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf876cd61fa8a27af14f7a688f2f104f"><td class="memItemLeft" align="right" valign="top"><a id="adf876cd61fa8a27af14f7a688f2f104f"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#adf876cd61fa8a27af14f7a688f2f104f">min_</a></td></tr>
<tr class="memdesc:adf876cd61fa8a27af14f7a688f2f104f"><td class="mdescLeft">&#160;</td><td class="mdescRight">float tracking the minimal and maximal values ever observed. <br /></td></tr>
<tr class="separator:adf876cd61fa8a27af14f7a688f2f104f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6f5b01a180db0299bbb5e4aedce0b88"><td class="memItemLeft" align="right" valign="top"><a id="af6f5b01a180db0299bbb5e4aedce0b88"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>max_</b></td></tr>
<tr class="separator:af6f5b01a180db0299bbb5e4aedce0b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>PCL simple buffer visualizer main class. </p>
<dl class="section note"><dt>注解</dt><dd>The idea is to offer a simple visualizer that stores and display the last X values as a curve. </dd>
<dd>
The class is based on <a class="el" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html" title="PCL histogram visualizer main class.">PCLHistogramVisualizer</a> and <a class="el" href="structpcl_1_1_v_f_h_signature308.html" title="A point structure representing the Viewpoint Feature Histogram (VFH).">pcl::VFHSignature308</a> for display. </dd>
<dd>
Therefore, the number of values is limited to [2-308]. </dd></dl>
<dl class="section author"><dt>作者</dt><dd>Raphael Favier </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa6e92f9d0039dfe41fff3c08c8f6a02c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6e92f9d0039dfe41fff3c08c8f6a02c">&#9670;&nbsp;</a></span>PCLSimpleBufferVisualizer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pcl::visualization::PCLSimpleBufferVisualizer::PCLSimpleBufferVisualizer </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>nb_values</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>PCL simple buffer visualizer visualizer constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nb_values</td><td>the number of values stored in the buffer [2 - 308] </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a> = <span class="keyword">new</span> PCLHistogramVisualizer ();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a> = nb_values;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;          <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a> &gt; 308)</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;          {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            PCL_WARN(<span class="stringliteral">&quot;Maximum number of values can only be 308 (%d given). Setting back to 308. \n&quot;</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a> = 308;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;          }</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;          <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a> &lt;= 1)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;          {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            PCL_WARN(<span class="stringliteral">&quot;Number of values must be at least 2 (%d given). Setting it to default (308). \n&quot;</span>);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a> = 308;     </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;          }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;          <span class="comment">// init values buffer</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a4e40e9eb53a9ebbf74a42d4c96004108">initValuesAndVisualization</a>();  </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_a4e40e9eb53a9ebbf74a42d4c96004108"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a4e40e9eb53a9ebbf74a42d4c96004108">pcl::visualization::PCLSimpleBufferVisualizer::initValuesAndVisualization</a></div><div class="ttdeci">void initValuesAndVisualization()</div><div class="ttdoc">initialize ther buffer that stores the values to zero.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:162</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_ab6d091c29ba760da2f75843fd6b3206d"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">pcl::visualization::PCLSimpleBufferVisualizer::histo_</a></div><div class="ttdeci">PCLHistogramVisualizer * histo_</div><div class="ttdoc">visualizer object</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:200</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_ac95848a16bac849b78d13b7165b04e6a"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">pcl::visualization::PCLSimpleBufferVisualizer::nb_values_</a></div><div class="ttdeci">int nb_values_</div><div class="ttdoc">number of values stored in the buffer</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:211</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a24a2e50ff80b47f857977f333302c8df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24a2e50ff80b47f857977f333302c8df">&#9670;&nbsp;</a></span>addValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::addValue </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>add a new value at the end of the buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the float value to add. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;          <span class="comment">// remove front value</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">values_</a>.pop_front();</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;          <span class="comment">// push new value in the back</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">values_</a>.push_back(val);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;          <span class="comment">// udapte min_ and max_ values</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;          <span class="keywordflow">if</span> (val &gt; max_)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            max_ = val;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;          <span class="keywordflow">if</span> (val &lt; <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#adf876cd61fa8a27af14f7a688f2f104f">min_</a>)</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#adf876cd61fa8a27af14f7a688f2f104f">min_</a> = val;  </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_aa54660cc72d298716912e429ac637dd2"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">pcl::visualization::PCLSimpleBufferVisualizer::values_</a></div><div class="ttdeci">std::deque&lt; float &gt; values_</div><div class="ttdoc">buffer of values</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:206</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_adf876cd61fa8a27af14f7a688f2f104f"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#adf876cd61fa8a27af14f7a688f2f104f">pcl::visualization::PCLSimpleBufferVisualizer::min_</a></div><div class="ttdeci">float min_</div><div class="ttdoc">float tracking the minimal and maximal values ever observed.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:223</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a80688a5e12f8efbfff90faedd8d9bf68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80688a5e12f8efbfff90faedd8d9bf68">&#9670;&nbsp;</a></span>displayValues()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::displayValues </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>time</em> = <code>1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>force display of values. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">time</td><td>- How long (in ms) should the visualization loop be allowed to run </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;          <span class="comment">// load values into cloud</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#af3967dfc8b54d04e3a8583e557ef71a2">updateValuesToDisplay</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;          <span class="comment">// check if we need to automatically handle the backgroud color</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;          <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a9be44647f5798993de56fa3c3786f713">control_background_color_</a>)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;          {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">values_</a>.back() &lt; <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ad1a2873415d0e1eaa813c993dde3f4e2">lowest_threshold_</a>)</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;              <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a8c8ae80e85bddf490e61ace3816c4534">setBackgroundColor</a>(255.0, 140.0, 0.0);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;              <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a8c8ae80e85bddf490e61ace3816c4534">setBackgroundColor</a>(255.0, 255.0, 255.0);            </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;          }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                      </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;          <span class="comment">// add cloud to the visualizer</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#aafff3dcdca64cc53e6b4ec1264ea5cb0">updateFeatureHistogram</a>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a2db20852dc0e7ebb1e493fdbedb10e49">cloud_</a>, <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;          <span class="comment">// check if we need to handle the Y scale ourselves</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;          <span class="keywordflow">if</span> (<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a7d8212450dc5286dd1784d7ae3afc376">handle_y_scale_</a>)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;          {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a3cbc39f7f6c4e3042e804dad09f6360d">setGlobalYRange</a>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#adf876cd61fa8a27af14f7a688f2f104f">min_</a>, max_);        </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;          }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;          <span class="comment">// spin once</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a3c148cf9748be1a78cd75f49e4a3c800">spinOnce</a>(time);  </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_histogram_visualizer_html_a3cbc39f7f6c4e3042e804dad09f6360d"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a3cbc39f7f6c4e3042e804dad09f6360d">pcl::visualization::PCLHistogramVisualizer::setGlobalYRange</a></div><div class="ttdeci">void setGlobalYRange(float minp, float maxp)</div><div class="ttdoc">Set the Y range to minp-maxp for all histograms.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_histogram_visualizer_html_a8c8ae80e85bddf490e61ace3816c4534"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a8c8ae80e85bddf490e61ace3816c4534">pcl::visualization::PCLHistogramVisualizer::setBackgroundColor</a></div><div class="ttdeci">void setBackgroundColor(const double &amp;r, const double &amp;g, const double &amp;b)</div><div class="ttdoc">Set the viewport's background color.</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_histogram_visualizer_html_aafff3dcdca64cc53e6b4ec1264ea5cb0"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#aafff3dcdca64cc53e6b4ec1264ea5cb0">pcl::visualization::PCLHistogramVisualizer::updateFeatureHistogram</a></div><div class="ttdeci">bool updateFeatureHistogram(const pcl::PointCloud&lt; PointT &gt; &amp;cloud, int hsize, const std::string &amp;id=&quot;cloud&quot;)</div><div class="ttdoc">Update a histogram feature that is already on screen, with a cloud containing a single histogram.</div><div class="ttdef"><b>Definition:</b> histogram_visualizer.hpp:139</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_a2db20852dc0e7ebb1e493fdbedb10e49"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a2db20852dc0e7ebb1e493fdbedb10e49">pcl::visualization::PCLSimpleBufferVisualizer::cloud_</a></div><div class="ttdeci">PointCloud&lt; VFHSignature308 &gt; cloud_</div><div class="ttdoc">cloud used for visualization</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:203</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_a3c148cf9748be1a78cd75f49e4a3c800"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a3c148cf9748be1a78cd75f49e4a3c800">pcl::visualization::PCLSimpleBufferVisualizer::spinOnce</a></div><div class="ttdeci">void spinOnce(const int time=1)</div><div class="ttdoc">spinOnce method.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:116</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_a7d8212450dc5286dd1784d7ae3afc376"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a7d8212450dc5286dd1784d7ae3afc376">pcl::visualization::PCLSimpleBufferVisualizer::handle_y_scale_</a></div><div class="ttdeci">bool handle_y_scale_</div><div class="ttdoc">boolean used to know if we need to change the backgroud color in case of low values....</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:220</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_a9be44647f5798993de56fa3c3786f713"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a9be44647f5798993de56fa3c3786f713">pcl::visualization::PCLSimpleBufferVisualizer::control_background_color_</a></div><div class="ttdeci">bool control_background_color_</div><div class="ttdoc">boolean used to know if we need to change the backgroud color in case of low values.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:214</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_ad1a2873415d0e1eaa813c993dde3f4e2"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ad1a2873415d0e1eaa813c993dde3f4e2">pcl::visualization::PCLSimpleBufferVisualizer::lowest_threshold_</a></div><div class="ttdeci">float lowest_threshold_</div><div class="ttdoc">threshold to turn the background orange if latest value is lower.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:217</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_af3967dfc8b54d04e3a8583e557ef71a2"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#af3967dfc8b54d04e3a8583e557ef71a2">pcl::visualization::PCLSimpleBufferVisualizer::updateValuesToDisplay</a></div><div class="ttdeci">void updateValuesToDisplay()</div><div class="ttdoc">pushes the values contained inside the buffer to the cloud used for visualization.</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:178</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4e40e9eb53a9ebbf74a42d4c96004108"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e40e9eb53a9ebbf74a42d4c96004108">&#9670;&nbsp;</a></span>initValuesAndVisualization()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::initValuesAndVisualization </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>initialize ther buffer that stores the values to zero. </p>
<dl class="section note"><dt>注解</dt><dd>The size is set by private member nb_values_ which is in the range [2-308]. </dd></dl>
<div class="fragment"><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a2db20852dc0e7ebb1e493fdbedb10e49">cloud_</a>.points.resize(1);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;          </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;          PCL_WARN(<span class="stringliteral">&quot;Setting buffer size to %d entries.\n&quot;</span>, <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a>);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aa54660cc72d298716912e429ac637dd2">values_</a>.resize(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a>);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;          <span class="comment">// add the cloud to the histogram viewer</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a1abc1c37c66ce81e847a84d85f0f5efd">addFeatureHistogram</a>(<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a2db20852dc0e7ebb1e493fdbedb10e49">cloud_</a>, <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ac95848a16bac849b78d13b7165b04e6a">nb_values_</a>); </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;          <span class="comment">// init GUI-related variables</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aeb93b4308c827d41ab669e05012a6beb">initGUIValues</a>();  </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_histogram_visualizer_html_a1abc1c37c66ce81e847a84d85f0f5efd"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a1abc1c37c66ce81e847a84d85f0f5efd">pcl::visualization::PCLHistogramVisualizer::addFeatureHistogram</a></div><div class="ttdeci">bool addFeatureHistogram(const pcl::PointCloud&lt; PointT &gt; &amp;cloud, int hsize, const std::string &amp;id=&quot;cloud&quot;, int win_width=640, int win_height=200)</div><div class="ttdoc">Add a histogram feature to screen as a separate window, from a cloud containing a single histogram.</div><div class="ttdef"><b>Definition:</b> histogram_visualizer.hpp:46</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer_html_aeb93b4308c827d41ab669e05012a6beb"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#aeb93b4308c827d41ab669e05012a6beb">pcl::visualization::PCLSimpleBufferVisualizer::initGUIValues</a></div><div class="ttdeci">void initGUIValues()</div><div class="ttdoc">initialize private variables linked to the GUI</div><div class="ttdef"><b>Definition:</b> simple_buffer_visualizer.h:188</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a80e5d59197e2975463911e3ed6fa14ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80e5d59197e2975463911e3ed6fa14ba">&#9670;&nbsp;</a></span>setAutomaticBackgroundColorControl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::setAutomaticBackgroundColorControl </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>value</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>threshold</em> = <code>0.0f</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set background color handling mode. </p>
<dl class="section note"><dt>注解</dt><dd>The point here is to change the background to orange when the latest value is under a threshold. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>if true, automatic mode is enabled. Else, background will be white </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold</td><td>value that triggers the background to turn orange if the latest value is lower </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>This functionality does not work yet at time of commit (see <a href="http://dev.pointclouds.org/issues/829">http://dev.pointclouds.org/issues/829</a>) </dd></dl>
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a9be44647f5798993de56fa3c3786f713">control_background_color_</a> = value;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;          <span class="comment">// if the user sets it back to false, we make sure to reset the bckgrd color to white</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;          <span class="keywordflow">if</span>(value == <span class="keyword">false</span>)</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#a8c8ae80e85bddf490e61ace3816c4534">setBackgroundColor</a>(255.0, 255.0, 255.0);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ad1a2873415d0e1eaa813c993dde3f4e2">lowest_threshold_</a> = threshold; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a6f17af179af451c721cbd720f138d0b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f17af179af451c721cbd720f138d0b3">&#9670;&nbsp;</a></span>setManuallyManageYScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::setManuallyManageYScale </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>value</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set Y scale policy. </p>
<dl class="section note"><dt>注解</dt><dd>If set to true, the minimal and maximal Y values are kept forever. </dd>
<dd>
If set to false, the Y scale is automatically adjusted to the current values (default). </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>boolean that enable or disable this policy </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#a7d8212450dc5286dd1784d7ae3afc376">handle_y_scale_</a> = value;  </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a3c148cf9748be1a78cd75f49e4a3c800"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c148cf9748be1a78cd75f49e4a3c800">&#9670;&nbsp;</a></span>spinOnce()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::visualization::PCLSimpleBufferVisualizer::spinOnce </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>time</em> = <code>1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>spinOnce method. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">time</td><td>- How long (in ms) should the visualization loop be allowed to run </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html#ab6d091c29ba760da2f75843fd6b3206d">histo_</a>-&gt;<a class="code" href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#ae8ca4043900567ac524da7406ce213e4">spinOnce</a>(time);  </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_p_c_l_histogram_visualizer_html_ae8ca4043900567ac524da7406ce213e4"><div class="ttname"><a href="classpcl_1_1visualization_1_1_p_c_l_histogram_visualizer.html#ae8ca4043900567ac524da7406ce213e4">pcl::visualization::PCLHistogramVisualizer::spinOnce</a></div><div class="ttdeci">void spinOnce(int time=1)</div><div class="ttdoc">Spin once method. Calls the interactor and updates the screen once.</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ac95848a16bac849b78d13b7165b04e6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac95848a16bac849b78d13b7165b04e6a">&#9670;&nbsp;</a></span>nb_values_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int pcl::visualization::PCLSimpleBufferVisualizer::nb_values_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of values stored in the buffer </p>
<dl class="section note"><dt>注解</dt><dd>([2-308]) </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>visualization/include/pcl/visualization/<a class="el" href="simple__buffer__visualizer_8h_source.html">simple_buffer_visualizer.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>visualization</b></li><li class="navelem"><a class="el" href="classpcl_1_1visualization_1_1_p_c_l_simple_buffer_visualizer.html">PCLSimpleBufferVisualizer</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
